package com.study.design.model.createPattern.factory.abstractFactory;

import org.junit.Test;

public class Client {
	
	@Test
	public void test() {
		CarFactory luxuryCarFactory = new LuxuryCarFactory() ;
		Engine luxuryEngine = luxuryCarFactory.createEngine() ;
		Seat luxurySeat = luxuryCarFactory.createSeat() ;
		Tyre luxuryTyre = luxuryCarFactory.createTyre() ;
		luxuryEngine.start() ;
		luxuryEngine.run() ;
		luxurySeat.message() ;
		luxuryTyre.revolve() ;
	}

}
